angular.module('SystemManage').config(['$stateProvider', '$urlRouterProvider',
    function($stateProvider, $urlRouterProvider) {
        $stateProvider.
            //可扩展枚举
            state('index.ExtendEnum', {
                url: '/ExtendEnum/Edit',
                templateUrl: 'modules/SystemManage/client/views/ExtendEnum.client.view.html',
                controller: 'EntendEnumController',
                access: { requiredAuthentication: true }
            }).
            state('index.ExtendEnumById', {
                url: '/ExtendEnum/Edit/:id',
                templateUrl: 'modules/SystemManage/client/views/ExtendEnum.client.view.html',
                controller: 'EntendEnumController',
                access: { requiredAuthentication: true }
            }).
            state('index.ExtendEnumList', {
                url: '/ExtendEnum/List',
                templateUrl: 'modules/SystemManage/client/views/ExtendEnumList.client.view.html',
                controller:'EntendEnumListController',
                access: { requiredAuthentication: true }
            }).
            //用户
            state('index.User', {
                url: '/User/Edit',
                templateUrl: 'modules/SystemManage/client/views/User.client.view.html',
                controller: 'UserController',
                access: { requiredAuthentication: true }
            }).
            state('index.UserById', {
                url: '/User/Edit/:id',
                templateUrl: 'modules/SystemManage/client/views/User.client.view.html',
                controller: 'UserController',
                access: { requiredAuthentication: true }
            }).
            state('index.UserList', {
                url: '/User/List',
                templateUrl: 'modules/SystemManage/client/views/UserList.client.view.html',
                controller:'UserListController',
                access: { requiredAuthentication: true }
            }).
            //角色
            state('index.Role', {
                url: '/Role/Edit',
                templateUrl: 'modules/SystemManage/client/views/Role.client.view.html',
                controller: 'RoleController',
                access: { requiredAuthentication: true }
            }).
            state('index.RoleById', {
                url: '/Role/Edit/:id',
                templateUrl: 'modules/SystemManage/client/views/Role.client.view.html',
                controller: 'RoleController',
                access: { requiredAuthentication: true }
            }).
            state('index.RoleList', {
                url: '/Role/List',
                templateUrl: 'modules/SystemManage/client/views/RoleList.client.view.html',
                controller:'RoleListController',
                access: { requiredAuthentication: true }
            }).
            //App角色
            state('index.AppRole', {
                url: '/AppRole/Edit',
                templateUrl: 'modules/SystemManage/client/views/AppRole.client.view.html',
                controller: 'AppRoleController',
                access: { requiredAuthentication: true }
            }).
            state('index.AppRoleById', {
                url: '/AppRole/Edit/:id',
                templateUrl: 'modules/SystemManage/client/views/AppRole.client.view.html',
                controller: 'AppRoleController',
                access: { requiredAuthentication: true }
            }).
            state('index.AppRoleList', {
                url: '/AppRole/List',
                templateUrl: 'modules/SystemManage/client/views/AppRoleList.client.view.html',
                controller:'AppRoleListController',
                access: { requiredAuthentication: true }
            }).
            //菜单
            state('index.Menu', {
                url: '/Menu/Edit',
                templateUrl: 'modules/SystemManage/client/views/Menu.client.view.html',
                controller: 'MenuController',
                access: { requiredAuthentication: true }
            }).
            state('index.MenuById', {
                url: '/Menu/Edit/:id',
                templateUrl: 'modules/SystemManage/client/views/Menu.client.view.html',
                controller: 'MenuController',
                access: { requiredAuthentication: true }
            }).
            state('index.MenuList', {
                url: '/Menu/List',
                templateUrl: 'modules/SystemManage/client/views/MenuList.client.view.html',
                controller:'MenuListController',
                access: { requiredAuthentication: true }
            }).
            //参数设置
            state('index.Parameter', {
                url: '/Parameter/Edit',
                templateUrl: 'modules/SystemManage/client/views/Parameter.client.view.html',
                controller:'ParameterController',
                access: { requiredAuthentication: true }
            }).
            //临时卡
            state('index.TempCard', {
                url: '/TempCard/Edit',
                templateUrl: 'modules/SystemManage/client/views/TempCard.client.view.html',
                controller:'TempCardController',
                access: { requiredAuthentication: true }
            });
    }
]);
